'''
Created on 2012-9-30

@author: siloonuser
'''
import sys
from PySide.QtCore import *
from PySide.QtGui import *

from ui_SettingSaltKey import Ui_SettingSaltKeyDialog
from AppMain import AppMain

class SettingSaltKeyDialog(QWidget,Ui_SettingSaltKeyDialog):
   
    def __init__(self, parent=None):
        super(SettingSaltKeyDialog, self).__init__()
        self.setupUi(self)
    def accept(self):
        AppMain.CFG_SALT_KEY = self.txtSaltKey.text()
        self.close()
    def reject(self):
        self.close()